<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo Yii::$app->name;?>后台管理</title>
<?php $this->HeaderView(['ueditor','slide']);?>
</head>
<body class="view_form" id="view_form_ThemeColumn">


<form id="view-form-form" class="view-form-form" style="" method="post" action="<?php echo $this->createUrl('config/index')?>" enctype="multipart/form-data">
<?php echo base\YiiMobo::csrfToken();?>
<div class="slideTxtBox mtop-0">
<div class="hd">
<ul>
	<li><a href="javascript:;"><span></span>短信</a></li>
	<li><a href="javascript:;"><span></span>Oauth</a></li>
	 <li><a href="javascript:;"><span></span>短信内容</a></li>
        <li><a href="javascript:;"><span></span>积分说明</a></li>
       
</ul>
</div>
<div class="bd">
<ul class="hidden">
	<table class="view-form-input" border="0" cellspacing="0"
		cellpadding="0" width="100%">
		<thead>
			<tr>
				<th valign="top" class="td-title"><font class="required">*</font><label
					for="catid">短信sp服务接口：</label></th>
				<td class="td-input"><input type="text" class="input-text"
					id="msg_url" name="Config[msg_url]"
					value="<?php echo @$rows['msg_url'];?>"></td>
					</tr><tr>
				<th valign="top" class="td-title"><font class="required">*</font><label
					for="catid">帐号：</label></th>
				<td class="td-input"><input type="text" class="input-text"
					id="msg_name" name="Config[msg_name]"
					value="<?php echo @$rows['msg_name'];?>"></td></tr><tr>
				<th valign="top" class="td-title"><font class="required">*</font><label
					for="catid">密码：</label></th>
				<td class="td-input"><input type="text" class="input-text"
					id="msg_pwd" name="Config[msg_pwd]"
					value="<?php echo @$rows['msg_pwd'];?>"></td>
			</tr>
			</tbody>
	
	</table>
</ul>
<ul>
	<table class="view-form-input" border="0" cellspacing="0"
		cellpadding="0" width="100%">
		<thead>
			<tr>
				<th valign="top" class="td-title"><font class="required">*</font><label
					for="catid">授权回调域名：</label></th>
				<td class="td-input"><input type="text" class="input-text"
					id="oauth_callback_url" name="Config[oauth_callback_url]"
					value="<?php echo @$rows['oauth_callback_url'];?>"></td>
			</tr>
			<tr>
				<th valign="top" class="td-title"><font class="required">*</font> <label
					for="catid">微信认证企业号appid：</label></th>
				<td class="td-input"><input type="text" class="input-text"
					id="oauth_wechat_appid" name="Config[oauth_wechat_appid]"
					value="<?php echo @$rows['oauth_wechat_appid'];?>"> (CorpID) </td>
			</tr>
			<tr>
				<th valign="top" class="td-title"><font class="required">*</font><label
					for="catid">微信认证服务号app secret：</label></th>
				<td class="td-input"><input type="text" class="input-text"
					id="oauth_wechat_secret" name="Config[oauth_wechat_secret]"
					value="<?php echo @$rows['oauth_wechat_secret'];?>"></td>
			</tr>
			<tr>
				<th valign="top" class="td-title"><font class="required">*</font><label
					for="catid">新浪微博App Key：</label></th>
				<td class="td-input"><input type="text" class="input-text"
					id="oauth_sina_key" name="Config[oauth_sina_key]"
					value="<?php echo @$rows['oauth_sina_key'];?>"></td>
			</tr>
			<tr>
				<th valign="top" class="td-title"><font class="required">*</font><label
					for="catid">新浪微博App Secret：</label></th>
				<td class="td-input"><input type="text" class="input-text"
					id="oauth_sina_secret" name="Config[oauth_sina_secret]"
					value="<?php echo @$rows['oauth_sina_secret'];?>"></td>
			</tr>
			<tr>
				<th valign="top" class="td-title"><font class="required">*</font><label
					for="catid">腾讯QQApp Key：</label></th>
				<td class="td-input"><input type="text" class="input-text"
					id="oauth_qq_key" name="Config[oauth_qq_key]"
					value="<?php echo @$rows['oauth_qq_key'];?>"></td>
			</tr>
			<tr>
				<th valign="top" class="td-title"><font class="required">*</font><label
					for="catid">腾讯QQApp Secret：</label></th>
				<td class="td-input"><input type="text" class="input-text"
					id="oauth_qq_secret" name="Config[oauth_qq_secret]"
					value="<?php echo @$rows['oauth_qq_secret'];?>"></td>
			</tr>
			<tr>
				<th valign="top" class="td-title"><font class="required">*</font><label
					for="catid">淘宝App Key：</label></th>
				<td class="td-input"><input type="text" class="input-text"
					id="oauth_taobao_key" name="Config[oauth_taobao_key]"
					value="<?php echo @$rows['oauth_taobao_key'];?>"></td>
			</tr>
			<tr>
				<th valign="top" class="td-title"><font class="required">*</font><label
					for="catid">淘宝App Secret：</label></th>
				<td class="td-input"><input type="text" class="input-text"
					id="oauth_taobao_secret" name="Config[oauth_taobao_secret]"
					value="<?php echo @$rows['oauth_taobao_secret'];?>"></td>
			</tr>
			<tr>
				</tbody>
	
	</table>
</ul>
    <ul>
	<table class="view-form-input" border="0" cellspacing="0"
		cellpadding="0" width="100%">
		<thead>
			<tr>
				<th valign="top" class="td-title"><font class="required">*</font><label
					for="catid">注册验证：</label></th>
				<td class="td-input"><textarea  class="input-text"
					id="regist_vercode_msg" name="Config[regist_vercode_msg]" style="width:300px;height:80px;"
					><?php echo @$rows['regist_vercode_msg'];?></textarea></td>
			</tr>
			<tr>
				<th valign="top" class="td-title"><font class="required">*</font> <label
					for="catid">绑定手机号码：</label></th>
				<td class="td-input"><textarea class="input-text"
					id="bindphone_vercode_msg" name="Config[bindphone_vercode_msg]" style="width:300px;height:80px;"
					 ><?php echo @$rows['bindphone_vercode_msg'];?></textarea></td>
			</tr>
			<tr>
				<th valign="top" class="td-title"><font class="required">*</font><label
					for="catid">积分兑换手机验证：</label></th>
				<td class="td-input"><textarea type="text" class="input-text"
					id="exchange_vercode_msg" name="Config[exchange_vercode_msg]" style="width:300px;height:80px;"
					 ><?php echo @$rows['exchange_vercode_msg'];?></textarea></td>
			</tr>
			<tr>
				<th valign="top" class="td-title"><font class="required">*</font><label
					for="catid">初始密码通知：</label></th>
				<td class="td-input"><textarea type="text" class="input-text"
					id="pwd_msg" name="Config[pwd_msg]" style="width:300px;height:80px;"
					 ><?php echo @$rows['pwd_msg'];?></textarea>
					</td>
			</tr>
			<tr>
				<th valign="top" class="td-title"><font class="required">*</font><label
					for="catid">等级变动通知：</label></th>
				<td class="td-input"><textarea type="text" class="input-text" style="width:300px;height:80px;"
					id="userlevel_msg" name="Config[userlevel_msg]"
					 ><?php echo @$rows['userlevel_msg'];?></textarea></td>
			</tr>
			<tr>
				<th valign="top" class="td-title"><font class="required">*</font><label
					for="catid">获得优惠券通知：</label></th>
				<td class="td-input"><textarea type="text" class="input-text" style="width:300px;height:80px;"
					id="coupon_get_msg" name="Config[coupon_get_msg]"
					 ><?php echo @$rows['coupon_get_msg'];?></textarea></td>
			</tr>
			<tr>
				<th valign="top" class="td-title"><font class="required">*</font><label
					for="catid">充值短信通知：</label></th>
				<td class="td-input"><textarea type="text" class="input-text" style="width:300px;height:80px;"
					id="recharge_msg" name="Config[recharge_msg]"
					 ><?php echo @$rows['recharge_msg'];?></textarea></td>
			</tr>
			<tr>
				<th valign="top" class="td-title"><font class="required">*</font><label
					for="catid">消费短信通知：</label></th>
				<td class="td-input"><textarea type="text" class="input-text"
					id="cost_msg" name="Config[cost_msg]" style="width:300px;height:80px;"
					><?php echo @$rows['cost_msg'];?></textarea></td>
			</tr>
			
				</tbody>
	
	</table>
</ul>
      <ul>
                <table class="view-form-input" border="0" cellspacing="0" cellpadding="0" width="100%">
                            <thead>
                        <tr>
                                    <th valign="top" class="td-title" style="width:200px"><label for="catid"><strong>积分说明</strong>：</label></th>
                                    <td class="td-input">对积分的获得，用途等说明</td>
                                </tr>
                        <tr>
                                    <th valign="top" class="td-title" style="width:200px"><label for="catid">积分说明内容：</label></th>
                           <td class="td-input"><textarea  id="content" name="Config[score_content]" style="width:800px;height:240px;"><?php echo @$rows['score_content'];?></textarea> <p style="padding:0px 0px"><label id="error-content" for="content" class="error hidden">请输入内容</label></p></td>
			</tr>

                            </tbody>
                        
                </table>
       </ul> 
    
    
    
    
</div>
</div>
<input type="submit" value="提交" name="sbmt" class="btn-submit"
	style="margin-left: 120px"></form>
<script type="text/javascript">jQuery(".slideTxtBox").slide({trigger:"click"});</script>
<script>
$(function(){
	var ue = UE.getEditor('content',{
		//这里可以选择自己需要的工具按钮名称,此处仅选择如下七个
		//toolbar:['fullscreen source undo redo bold italic underline'],
                serverUrl:"<?php echo $this->createUrl('Ueditor/index');?>",
		//图片上传配置区
		imageUrl:"<?php echo $this->createUrl('Uploadify/upload');?>",
		imagePath:"<?php echo Yii::$app->request->baseUrl; ?>/",
		imageFieldName:"upfile"
	});
	//这里监听编辑器 如果有内容输入，隐藏输入内容的提示
	ue.addListener( 'contentChange', function( editor ) {
		(ue.getContentLength(true)) ? $('#error-content').hide() : $('#error-content').show();;
	});
	
        var ue = UE.getEditor('content2',{
		//这里可以选择自己需要的工具按钮名称,此处仅选择如下七个
		//toolbar:['fullscreen source undo redo bold italic underline'],
        serverUrl:"<?php echo $this->createUrl('Ueditor/index');?>",
		//图片上传配置区
		imageUrl:"<?php echo $this->createUrl('Uploadify/upload');?>",
		imagePath:"<?php echo Yii::$app->request->baseUrl; ?>/",
		imageFieldName:"upfile"
	});
	//这里监听编辑器 如果有内容输入，隐藏输入内容的提示
	ue.addListener( 'contentChange', function( editor ) {
		(ue.getContentLength(true)) ? $('#error-content').hide() : $('#error-content').show();;
	});
	
        

	//需要表单验证的请在这里配置，文档
	$("#view-form-form").validate({
		//debug:true, 如果只调试验证不提交数据，可开启这里
		rules: {
	        "Config[point_binding]":{
				required:true,
				digits:true
			},
			"Config[point_toweibo]":{
				required:true,
				digits:true
			},
			"Config[point_towechat]":{
				required:true,
				digits:true
			},
			"Config[point_share_max]":{
				required:true,
				digits:true
			},
			"Config[point_taobao]":{
				required:true,
				number:true
			}
			,"Config[point_feedback]":{
				required:true,
				digits:true
			},
                        
                        "Config[score_content]":{
				required:true,
				maxlength:500
			}
                        
		},
		messages: {
                    "Config[score_content]":{
				required: "必填项",
                                maxlength: "最多不能超过500字"
			}
			
		} 
	});
})
</script>
<?php $this->FooterView();?>
</body>
</html>
